package com.egoo.ticket.server.dao;

import com.egoo.ticket.server.pojo.dto.WorkOrderUrgeOutDto;
import com.egoo.ticket.server.pojo.entity.WorkOrderUrge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * @author Administrator
 */

@Component
public interface WorkOrderUrgeDao {

	/**
	 * 根据工单Id查询相关催单信息
	 * @param workOrderId
	 * @return
	 */
		List<WorkOrderUrgeOutDto> selectByWorkOrderId(String workOrderId);

	/**
	 * 批量催单
	 * @param list
	 * @return
	 */
		Integer insertWorkOrderUrgeBatch(@Param(value = "list") List<WorkOrderUrge> list);

	/**
	 * 根据催单id查询催单信息
	 * @param id
	 * @return
	 */
	  	WorkOrderUrge selectById(@Param("id") Integer id);

	/**
	 * 关闭催单信息
	 * @param workOrderUrge
	 * @return
	 */
	  	Integer closeWorkOrderUrge(WorkOrderUrge workOrderUrge);

	/**
	 * 动态查询
	 * @param hashMap
	 * @return
	 */
	List<WorkOrderUrgeOutDto> selectDynamic(HashMap<String, Object> hashMap);
}
